//
//  ViewController.m
//  CLGNetworkApp
//
//  Created by Liu Guocheng on 2018/4/2.
//  Copyright © 2018年 Sumavision. All rights reserved.
//

#import "ViewController.h"
#import "CLGNetwork.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    
    NSURL *url = [NSURL URLWithString:@"http://192.168.12.150:8080/api/cinemas"];
    [CLGNetwork GET:url parameters:nil headers:nil timeout:5 completion:^(NSDictionary *response, NSError *error) {
        NSLog(@"response %@, error %@", response, error);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
